/*
 *  GWPitchedDelayEffect.h
 *  GWGlitch
 *
 *  Created by Michael Forrest on 01/03/2008.
 *  Copyright 2008 Grimaceworks. All rights reserved.
 *
 */
#import "GWEffectBase.h"
#include "Effect.h"
#include "Echo.h"
class GWPitchedDelayEffect : public GWEffectBase {
	public:
		GWPitchedDelayEffect(AUKernelBase * kernel) : GWEffectBase(kernel){
			echo = new Echo(MAX_DELAY);
			echo->setEffectMix(1);
		}
		virtual ~GWPitchedDelayEffect(){delete echo;}
		virtual void 		Process(const Float32		*inSourceP,
								Float32		*inDestP,  
								UInt32 		inFramesToProcess,  
								UInt32		inNumChannels,  
								bool		&ioSilence);
	private:
		static const UInt32 MAX_DELAY = 100000;
		Echo * echo;
};
